package com.yjhealth.libs.core.core.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;

import com.qmuiteam.qmui.arch.QMUIFragment;

public abstract class CoreQmuiFragment extends QMUIFragment {
    public FragmentActivity activity;

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        activity = getActivity();
    }

    @Override
    protected boolean translucentFull() {
        return true;
    }

    //禁止滑动返回，有bug
    @Override
    protected boolean canDragBack() {
        return false;
    }
}
